package com.voc.im.xmpp.listener;

import org.jivesoftware.smack.ConnectionListener;
import org.jivesoftware.smack.XMPPConnection;

public class IMConnectionListener implements ConnectionListener {

    @Override
    public void connected(XMPPConnection connection) {
        System.out.println("连接成功");
    }

    @Override
    public void authenticated(XMPPConnection connection, boolean resumed) {
        System.out.println("认证成功");
    }

    @Override
    public void connectionClosed() {
        System.out.println("关闭连接");
    }

    @Override
    public void connectionClosedOnError(Exception e) {
        System.out.println("连接异常");
    }
}
